<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">序号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control form-control" name="row[sort]" type="number" value="{$row.sort}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-title" class="form-control form-control" name="row[title]" data-rule="required">{$row.title}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a" class="form-control form-control" name="row[a]" type="text" value="{$row.a}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b" class="form-control form-control" name="row[b]" type="text" value="{$row.b}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选项A代号:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[a_cname]',$cnames,strtolower($row.a_cname),['class'=>'form-control'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选项A得分:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_score" class="form-control" name="row[a_score]" type="number" value="{$row.a_score}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选项B代号:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[b_cname]',$cnames,strtolower($row.b_cname),['class'=>'form-control'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">选项B得分:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_score" class="form-control " name="row[b_score]" type="number" value="{$row.b_score}" data-rule="required">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>